package com.example.demo.controller;

import com.example.demo.entity.ResultMsg;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zcb
 * @Description:
 * @Date: 2021/11/17
 */
@RestController
@RequestMapping("index")
public class IndexController {

    @GetMapping("test")
    public ResultMsg test(String from) {
        return ResultMsg.ok("hello, " + from + " ,I'm order-service!");
    }
}
